import request from '@/utils/request';

// 查询设备简短列表
export function listDeviceShort(query) {
    return request({
        url: '/iot/device/shortList',
        method: 'get',
        params: query,
    });
}

// 查询设备运行状态详细
export function getDeviceRunningStatus(params) {
    return request({
        url: '/iot/device/runningStatus',
        method: 'get',
        params: params,
    });
}

// 查询设备历史监测数据
export function listHistory(query) {
    return request({
        url: '/iot/deviceLog/history',
        method: 'get',
        params: query,
    });
}
